package com.silentfish.core.baseModel;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class Pagination<T> implements Serializable {
    private static final long serialVersionUID = -8489748309630203557L;
    private int draw;
    private int recordsTotal;
    private int recordsFiltered;
    private List<T> data;
    private String error;
    private List<Map<String, Object>> titles;
    private Map<String, Object> dataCount;
    private Map<String, Object> dataPageCount;

    public Pagination() {
    }

    public int getDraw() {
        return this.draw;
    }

    public void setDraw(int draw) {
        this.draw = draw;
    }

    public int getRecordsTotal() {
        return this.recordsTotal;
    }

    public void setRecordsTotal(int recordsTotal) {
        this.recordsTotal = recordsTotal;
    }

    public int getRecordsFiltered() {
        return this.recordsFiltered;
    }

    public void setRecordsFiltered(int recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
    }

    public List<T> getData() {
        return this.data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public String getError() {
        return this.error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public List<Map<String, Object>> getTitles() {
        return this.titles;
    }

    public void setTitles(List<Map<String, Object>> titles) {
        this.titles = titles;
    }

    public Map<String, Object> getDataCount() {
        return this.dataCount;
    }

    public void setDataCount(Map<String, Object> dataCount) {
        this.dataCount = dataCount;
    }

    public Map<String, Object> getDataPageCount() {
        return this.dataPageCount;
    }

    public void setDataPageCount(Map<String, Object> dataPageCount) {
        this.dataPageCount = dataPageCount;
    }
}